import { sysKnowledgeQuery } from "@/api/admin/courseLibrary/sysKnowledge.js";
export const setKnoledgeInfo = {
    data() {
        return {
            knoledgeId: this.$store.getters.knowledgeId,
        };
    },
    methods: {
        getInfoById() {
            sysKnowledgeQuery({ id: this.knoledgeId }).then((res) => {
                let row = res.data.data[0];
                this.$store.commit("SETKNOLEDGE", row);
            });
        },
    },
}